﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace SuperX.DeviceService.Ledger
{
    /// <summary>
    /// 设备台账
    /// </summary>
    public class EquipmentLedger
    {
        /// <summary>
        /// 设备编码
        /// </summary>
        public string code { get; set; }

        /// <summary>
        /// IoT设备id
        /// </summary>
        public string fullName { get; set; }

        /// <summary>
        /// FUJI NXT 三代
        /// </summary>
        public string model_name { get; set; }

        /// <summary>
        /// 设备类型 贴片机/AOI
        /// </summary>
        public string type_name { get; set; }

        /// <summary>
        /// 设备类别 生产设备/检测设备
        /// </summary>
        public string type_category { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        public string name { get; set; }

        /// <summary>
        /// 技术规格 M6
        /// </summary>
        public string specification { get; set; }

        /// <summary>
        /// 状态 使用中
        /// </summary>
        public EquipmentStatus use_status { get; set; }

        /// <summary>
        /// 设备ID
        /// </summary>
        public string id { get; set; }

        /// <summary>
        /// 型号编码 NXT-III
        /// </summary>
        public string model_code { get; set; }

        public string ip { get; set; }

        /// <summary>
        /// 工序名
        /// </summary>
        public string processName { get; set; }
    }

    public enum EquipmentStatus
    {
        [Description("using")]
        @using = 0,

        [Description("in_idle")]
        in_idle = 1,

        [Description("safekeeping")]
        safekeeping = 2,
    }
}